﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace whuc.PlaneGame
{
    /// <summary>
    /// 每一位玩家的记录信息     对象序列化   Serializable加了这个特性，那么这个对象就可以序列化
    /// </summary>
    [Serializable]
    public class User
    {
        /// <summary>
        /// 当前玩家的昵称
        /// </summary>
        public string userNickName { get; set; }
        /// <summary>
        /// 玩家什么时候玩的
        /// </summary>
        public DateTime playTime { get; set; }
        /// <summary>
        /// 玩家的最高得分
        /// </summary>
        public int Score { get; set; }

        public User(string userNickName,DateTime playTime,int Score)
        {
            this.userNickName = userNickName;
            this.playTime = playTime;
            this.Score = Score;
        }
    }
}
